package org.jeecg.modules.basic.warehouse.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Description: 仓库-库区
 * @Author: jeecg-boot
 * @Date: 2023-08-09
 * @Version: V1.0
 */
@Data
@TableName("wms_basic_warehouse_area")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "wms_basic_warehouse_area对象", description = "仓库-库区")
public class WmsBasicWarehouseArea implements Serializable {
    //private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "org_code")
    private java.lang.String sysOrgCode;
    /**
     * 所属仓库
     */
    @Excel(name = "所属仓库", width = 15, dictTable = "wms_basic_warehouse", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "所属仓库id")
    @Dict(dictTable = "wms_basic_warehouse", dicText = "name", dicCode = "id")
    private java.lang.String wmsBasicWarehouseId;
    /**
     * 显示顺序
     */
    @Excel(name = "显示顺序", width = 15)
    @ApiModelProperty(value = "显示顺序")
    private java.lang.Integer orderIndex;
    /**
     * 库区名称
     */
    @Excel(name = "库区名称", width = 15)
    @ApiModelProperty(value = "库区名称")
    private java.lang.String name;
    /**
     * 库区编码
     */
    @Excel(name = "库区编码", width = 15)
    @ApiModelProperty(value = "库区编码")
    private java.lang.String code;
    /**
     * 状态
     */
    @Excel(name = "状态", width = 15, dicCode = "is_enabled")
    @Dict(dicCode = "is_enabled")
    @ApiModelProperty(value = "状态")
    private java.lang.String status;
    /**
     * 备注
     */
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private java.lang.String description;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private java.lang.Integer tenantId;
    /**
     * 逻辑删
     */
    @ApiModelProperty(value = "逻辑删")
    @TableLogic
    private java.lang.Integer delFlag;
    /**
     * 预警容量
     */
    @Excel(name = "预警容量", width = 15)
    @ApiModelProperty(value = "预警容量")
    private BigDecimal warningCapacity;
    /**
     * 最大容量
     */
    @Excel(name = "最大容量", width = 15)
    @ApiModelProperty(value = "最大容量")
    private BigDecimal maxCapacity;

    @Excel(name = "生产站点", width = 15, dicCode = "cross_cut_material_site")
    @ApiModelProperty(value = "生产站点")
    @Dict(dicCode = "cross_cut_material_site")
    private java.lang.String productSite;

    /**
     * 最小库存
     */
    @Excel(name = "最小库存", width = 15)
    @ApiModelProperty(value = "最小库存")
    private BigDecimal minCapacity;

    /**
     * 宽度范围(mm)下限
     */
    @Excel(name = "宽度范围(mm)下限", width = 15)
    @ApiModelProperty(value = "宽度范围(mm)下限")
    private String widthMin;
    /**
     * 宽度范围(mm)上限
     */
    @Excel(name = "宽度范围(mm)上限", width = 15)
    @ApiModelProperty(value = "宽度范围(mm)上限")
    private String widthMax;
    /**
     * 最大容量(辅单位)
     */
    @Excel(name = "最大容量(辅单位)", width = 15)
    @ApiModelProperty(value = "最大容量(辅单位)")
    private BigDecimal maxCapacityAssist;
    /**
     * 预警容量(辅单位)
     */
    @Excel(name = "预警容量(辅单位)", width = 15)
    @ApiModelProperty(value = "预警容量(辅单位)")
    private BigDecimal warningCapacityAssist;
    /**
     * 最小库存(辅单位)
     */
    @Excel(name = "最小库存(辅单位)", width = 15)
    @ApiModelProperty(value = "最小库存(辅单位)")
    private BigDecimal minCapacityAssist;
    /**
     * 预留空库位量
     */
    @Excel(name = "预留空库位量", width = 15)
    @ApiModelProperty(value = "预留空库位量")
    private String emptyCapacity;
    /**
     * 类型
     */
    @Excel(name = "类型", width = 15, dicCode = "warehouse_area_status")
    @Dict(dicCode = "warehouse_area_status")
    @ApiModelProperty(value = "类型")
    private String areaType;
    /**
     * 备料区域
     */
    @Excel(name = "备料区域", width = 15, dicCode = "warehouse_material_area")
    @Dict(dicCode = "warehouse_material_area")
    @ApiModelProperty(value = "备料区域")
    private String materialArea;

    /**
     * 是否启用库位管理
     */
    @Excel(name = "是否启用库位管理", width = 15)
    @ApiModelProperty(value = "是否启用库位管理")
    @Dict(dicCode = "is_enabled")
    private String isUseLocation;

    /**
     * 默认库区(0: 否 1: 是)
     */
    @Excel(name = "默认库区", width = 15)
    @ApiModelProperty(value = "默认库区")
    @Dict(dicCode = "yn")
    private String byDefault;
}
